package com.example.springboot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.springboot.base.Result;
import com.example.springboot.pojo.UserInfo;
import com.github.qcloudsms.httpclient.HTTPException;
import org.springframework.transaction.annotation.Transactional;

import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 赵久燚
 * @since 2022-07-11 19:45:42
 */
@Transactional
public interface UserInfoService extends IService<UserInfo> {

    Result userLogin(String username, String password);


    Result token(String token);

    Result sendVerCode(String phoneNumber) throws HTTPException, IOException;

    Result userRegister(String userName, String password, String phoneNumber, String verCode);
}
